import request from '@/utils/request'

// 退货申请列表
export const fetchReturnApplyList = (params) => {
    return request({
        url: '/returnApply/list',
        method: 'get',
        params: params
    })
}

// 删除退货申请
export const deleteApply = (params) => {
    return request({
        url: '/returnApply/delete',
        method: 'post',
        params: params
    })
}

// 退货申请状态修改
export const updateApplyStatus = (id, data) => {
    return request({
        url: '/returnApply/update/status/' + id,
        method: 'post',
        data: data
    })
}

// 退货申请详情
export const getApplyDetail = (id) => {
    return request({
        url: '/returnApply/' + id,
        method: 'get'
    })
}
